/**
 * Created by Administrator on 2017-7-25.
 */

var Utils = {

  //获取参数
  GetQueryString(search, name)
  {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = search.substr(1).match(reg);
    if (r != null)return unescape(r[2]);
    return null;
  },

  MathRand()
  {
    var Num="";
    for(var i=0;i<6;i++)
    {
      Num+=Math.floor(Math.random()*10);
    }
    return Num;
  }
}

export default Utils;
